package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品查看足迹
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-12-11 18:30:40
 */
@Getter
@Setter
@TableName("t_product_view")
@ApiModel(value = "ProductView对象", description = "商品、店铺、互动、动态查看足迹")
public class ProductView implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private String id;

    @ApiModelProperty("被查看商品id、店铺id、互动id、动态id")
    @TableField("view_id")
    private String viewId;

    @ApiModelProperty("查看类型(1=商品 2=店铺 3=互动 4=动态)")
    @TableField("view_type")
    private String viewType;

    @ApiModelProperty("查看的用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("查看的用户昵称")
    @TableField("user_nick_name")
    private String userNickName;

    @ApiModelProperty("查看的用户头像")
    @TableField("user_avatar")
    private String userAvatar;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
